home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
news
/
inn1.000
/
inn1.4sec-linux-src.tar
/
inn
/
lib
/
xmalloc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-24
|
406b
|
26 lines
/* $Revision: 1.6 $
**
*/
#include <stdio.h>
#include <errno.h>
#include <sys/types.h>
#include "configdata.h"
#include "libinn.h"
#include "clibrary.h"
#include "macros.h"
/*
** Allocate some memory or call the memory failure handler.
*/
ALIGNPTR
xmalloc(i)
unsigned int i;
{
POINTER new;
while ((new = malloc(i)) == NULL)
(*xmemfailure)("malloc", i);
return CAST(ALIGNPTR, new);
}